﻿@model WeProjects.Models.LoginModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@{
    ViewBag.Title = "Log in";
}
<style type="text/css">
    .row div {
        min-height:32px;
    }
        .row div label {
            vertical-align:-1px;
        }
    input#RememberMe {
        vertical-align: -2px;
    }
    .row div span {
        color:#FF0000;
        padding-left:5px;
    }
</style>

<h2>登录</h2>
<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <div class="row">
            <div class="col-xs-3 col-md-2 text-right">
                @Html.Label("用户名")
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
            <div class="col-xs-3 col-md-2 text-right">
                @Html.Label("密　码")
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div class="col-xs-3 col-md-2">
            </div>
            <div class="col-xs-9 col-md-10">
                @Html.CheckBoxFor(m => m.RememberMe) 记住
            </div>
            <div class="col-xs-3 col-md-2">
            </div>
            <div class="col-xs-9 col-md-10">
                <input type="submit" value="登录" class="btn btn-success" />
            </div>
            <div class="col-xs-3 col-md-2">
            </div>
            <div class="col-xs-9 col-md-10">
                <p>
                    @*如果没有账户，请先 @Html.ActionLink("注册账户", "Register").*@
                </p>
            </div>
        </div>
</fieldset>
}
</section>

@*<section id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>*@

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
